package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysProvCityDistMapper;
import com.ruoyi.system.domain.SysProvCityDist;
import com.ruoyi.system.service.ISysProvCityDistService;

/**
 * 省市县字典Service业务层处理
 * 
 * @author rey
 * @date 2022-10-25
 */
@Service
public class SysProvCityDistServiceImpl implements ISysProvCityDistService 
{
    @Autowired
    private SysProvCityDistMapper sysProvCityDistMapper;

    /**
     * 查询省市县字典
     * 
     * @param id 省市县字典主键
     * @return 省市县字典
     */
    @Override
    public SysProvCityDist selectSysProvCityDistById(Long id)
    {
        return sysProvCityDistMapper.selectSysProvCityDistById(id);
    }

    /**
     * 查询省市县字典列表
     * 
     * @param sysProvCityDist 省市县字典
     * @return 省市县字典
     */
    @Override
    public List<SysProvCityDist> selectSysProvCityDistList(SysProvCityDist sysProvCityDist)
    {
        return sysProvCityDistMapper.selectSysProvCityDistList(sysProvCityDist);
    }

    /**
     * 新增省市县字典
     * 
     * @param sysProvCityDist 省市县字典
     * @return 结果
     */
    @Override
    public int insertSysProvCityDist(SysProvCityDist sysProvCityDist)
    {
        return sysProvCityDistMapper.insertSysProvCityDist(sysProvCityDist);
    }

    /**
     * 修改省市县字典
     * 
     * @param sysProvCityDist 省市县字典
     * @return 结果
     */
    @Override
    public int updateSysProvCityDist(SysProvCityDist sysProvCityDist)
    {
        return sysProvCityDistMapper.updateSysProvCityDist(sysProvCityDist);
    }

    /**
     * 批量删除省市县字典
     * 
     * @param ids 需要删除的省市县字典主键
     * @return 结果
     */
    @Override
    public int deleteSysProvCityDistByIds(Long[] ids)
    {
        return sysProvCityDistMapper.deleteSysProvCityDistByIds(ids);
    }

    /**
     * 删除省市县字典信息
     * 
     * @param id 省市县字典主键
     * @return 结果
     */
    @Override
    public int deleteSysProvCityDistById(Long id)
    {
        return sysProvCityDistMapper.deleteSysProvCityDistById(id);
    }
}
